<template>
  <div class="main-table">
    <div class="hot-header">
      <!-- 左边 -->
      <slot name="left">
        <a href="javascripr:;" class="hot-a">热门推荐</a>
      </slot>

      <!-- 右边 -->
      <slot name="right">
        <div class="main-more">
          <a href="" class="more">更多</a>
          <span class="hot-right"></span>
        </div>
      </slot>
    </div>
    <div class="hot-body">
      <slot name="body"></slot>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.hot-header,
.hot-right {
  background: url("https://s2.music.126.net/style/web2/img/index/index.png?6f7122023fe4b0e7c59ac1d1226d1064")
    no-repeat 0 9999px;
}

.main-table {
  background: #fff;
  width: 100%;
  a {
    color: black;
    text-decoration: none;
  }
  
  .hot-header {
    height: 33px;
    padding: 0 10px 0 34px;
    background-position: -225px -156px;
    border-bottom: 2px solid #c10d0c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .hot-a {
    font-size: 20px;
    color: black;
    font-weight: normal;
    margin-bottom: 5px;
  }
  }
  .hot-right {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-position: 0 -240px;
  }
  .more {
    color: #666;
  }
}
</style>